<?php

use yii\db\Schema;
use yii\db\Migration;

class m160314_061127_add_solution_balance_is_edited_field extends Migration
{
    public function up()
    {
        $this->addColumn('{{%solution_balance}}', 'is_edited', 'tinyint(1) not null default 0 comment "策略排期或预算是否被修改过，１修改过，０未修改" after burn_hours');
    }

    public function down()
    {
        return $this->dropColumn('{{%solution_balance}}', 'is_edited');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
